package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.dao.GsOrderDeliverGoodsDao;
import com.hitrust.gs.service.GSBaseBean;

public class GSOrderDetailQueryBean implements GSBaseBean{
	
	private static final long serialVersionUID = 1L;
	
	private String drawingPieceCode;
	private String gsOrderTempId;
	private String productCode;
	private String gsOrderCreateDateStart;
	private String gsOrderCreateDateEnd;
	private String gsOrderCreateDate;
	private String warehouseCode;
	private String gsOrderDetailStatus;
	private String providerCode;
	private double gsGoodsUnitPrice;
	private double gsDelicerGoodsCounts;
	private int pageSize;
	private int currentPage;
	private int totalCount;
	private String productId;
	private String productName;
	private String productMode;
	private String productSpec;
	private String gsOrderDetailId;
	private String gsBalanceMode;

	public String getGsBalanceMode() {
		return gsBalanceMode;
	}

	public void setGsBalanceMode(String gsBalanceMode) {
		this.gsBalanceMode = gsBalanceMode;
	}

	public String getDrawingPieceCode() {
		return drawingPieceCode;
	}

	public void setDrawingPieceCode(String drawingPieceCode) {
		this.drawingPieceCode = drawingPieceCode;
	}

	public String getGsOrderTempId() {
		return gsOrderTempId;
	}

	public void setGsOrderTempId(String gsOrderTempId) {
		this.gsOrderTempId = gsOrderTempId;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getGsOrderCreateDateStart() {
		return gsOrderCreateDateStart;
	}

	public void setGsOrderCreateDateStart(String gsOrderCreateDateStart) {
		this.gsOrderCreateDateStart = gsOrderCreateDateStart;
	}

	public String getGsOrderCreateDateEnd() {
		return gsOrderCreateDateEnd;
	}

	public void setGsOrderCreateDateEnd(String gsOrderCreateDateEnd) {
		this.gsOrderCreateDateEnd = gsOrderCreateDateEnd;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}

	public String getGsOrderDetailStatus() {
		return gsOrderDetailStatus;
	}

	public void setGsOrderDetailStatus(String gsOrderDetailStatus) {
		this.gsOrderDetailStatus = gsOrderDetailStatus;
	}

	public String getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(String customerCode) {
		this.providerCode = customerCode;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public double getGsGoodsUnitPrice() {
		return gsGoodsUnitPrice;
	}

	public void setGsGoodsUnitPrice(double gsGoodsUnitPrice) {
		this.gsGoodsUnitPrice = gsGoodsUnitPrice;
	}

	public double getGsDelicerGoodsCounts() {
		return gsDelicerGoodsCounts;
	}

	public void setGsDelicerGoodsCounts(double gsDelicerGoodsCounts) {
		this.gsDelicerGoodsCounts = gsDelicerGoodsCounts;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductMode() {
		return productMode;
	}

	public void setProductMode(String productMode) {
		this.productMode = productMode;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public String getGsOrderCreateDate() {
		return gsOrderCreateDate;
	}

	public void setGsOrderCreateDate(String gsOrderCreateDate) {
		this.gsOrderCreateDate = gsOrderCreateDate;
	}

	public String getGsOrderDetailId() {
		return gsOrderDetailId;
	}

	public void setGsOrderDetailId(String gsOrderDetailId) {
		this.gsOrderDetailId = gsOrderDetailId;
	}

	public Object process(ResultSet aResultSet) throws SQLException {
		GSOrderDetailQueryBean bean = new GSOrderDetailQueryBean();
		bean.drawingPieceCode = aResultSet.getString("DRAWING_PIECE_CODE") == null?"":aResultSet.getString("DRAWING_PIECE_CODE").trim();
		bean.gsOrderDetailStatus = aResultSet.getString("GS_ORDER_DETAIL_STATUS") == null?"":aResultSet.getString("GS_ORDER_DETAIL_STATUS").trim();
		bean.productCode = aResultSet.getString("CONCENTRICITY_CODE") == null?"":aResultSet.getString("CONCENTRICITY_CODE").trim();
		bean.providerCode = aResultSet.getString("GS_PROVIDER_ID") == null?"":aResultSet.getString("GS_PROVIDER_ID").trim();
		bean.gsOrderTempId = aResultSet.getString("GS_ORDER_TEMPID") == null?"":aResultSet.getString("GS_ORDER_TEMPID").trim();
		bean.gsDelicerGoodsCounts = aResultSet.getDouble("GS_DELIVER_GOODS_COUNTS");
		bean.gsGoodsUnitPrice = aResultSet.getDouble("GS_GOODS_UNITPRICE");
		bean.productId = aResultSet.getString("ID") == null ?"":aResultSet.getString("ID").trim();
		bean.productName = aResultSet.getString("NAME") == null?"":aResultSet.getString("NAME").trim();
		bean.productMode = aResultSet.getString("MODEL") == null?"":aResultSet.getString("MODEL").trim();
		bean.productSpec = aResultSet.getString("SPEC") == null?"":aResultSet.getString("SPEC").trim();		
		bean.gsOrderCreateDate = aResultSet.getString("GS_ORDER_CREATE_DATE") ==null?"":aResultSet.getString("GS_ORDER_CREATE_DATE").trim();
		bean.gsOrderDetailId = aResultSet.getString("GS_ORDER_DETAIL_ID") ==null?"":aResultSet.getString("GS_ORDER_DETAIL_ID").trim();
		bean.gsBalanceMode = aResultSet.getString("GS_BALANCE_MODE") == null ?"": aResultSet.getString("GS_BALANCE_MODE").trim();
		return bean;
	}
}
